# class cat:
#     def __init__(self):
#         self.name1='大狗'
#         self.age1='3岁'
#         self.name2='二狗'
#         self.age2='2岁'
# cat1 =cat()
# print(cat1.name1)
# print(cat1.age1)
#
# cat2 =cat()
# print(cat2 .name2)
# print(cat2 .age2)



class Cat:
    def __init__(self,name,age):
        self.name = name
        self.age= age
    def call(self):
        print(f'我是名字是:{self.name}','我的年龄是:{self.age}')


c1 =Cat('恭喜',33)  # p1=类名(对象)     创建对象
c1.call()   #调用方法

c2 =Cat('翡翠',44)
c2.call()



# c1 =cat('大狗',3)
# print(c1 .name)
# print(c1 .age)
# c2 =cat('二狗',2)
# print(c2 .name)
# print(c2 .age)